.class public Lcom/netease/newsreader/appwidget/WidgetService4x3;
.super Landroid/app/Service;
.source "WidgetService4x3.java"


# static fields
.field public static final TAG:Ljava/lang/String; = "NewsReader--UpdateService"


# instance fields
.field bitmap1:Landroid/graphics/Bitmap;

.field bitmap2:Landroid/graphics/Bitmap;

.field bitmap3:Landroid/graphics/Bitmap;

.field private data:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private detailpage:Landroid/content/Intent;

.field private finish:Z

.field private handler:Landroid/os/Handler;

.field private imgUrl1:Ljava/lang/String;

.field private imgUrl2:Ljava/lang/String;

.field private imgUrl3:Ljava/lang/String;

.field private imgdownload:Lcom/netease/newsreader/util/BaseImageDownloader;

.field private mCount:I

.field private manager:Landroid/appwidget/AppWidgetManager;

.field private page:I

.field private pages:I

.field private threadflag:Z

.field private updateThread:Ljava/lang/Thread;

.field private updateViews:Landroid/widget/RemoteViews;

.field private widget:Landroid/content/ComponentName;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 36
    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    .line 50
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    .line 51
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->threadflag:Z

    .line 58
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl1:Ljava/lang/String;

    .line 59
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl2:Ljava/lang/String;

    .line 60
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl3:Ljava/lang/String;

    .line 95
    new-instance v0, Lcom/netease/newsreader/appwidget/WidgetService4x3$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3$1;-><init>(Lcom/netease/newsreader/appwidget/WidgetService4x3;)V

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateThread:Ljava/lang/Thread;

    .line 185
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->finish:Z

    .line 362
    new-instance v0, Lcom/netease/newsreader/appwidget/WidgetService4x3$2;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3$2;-><init>(Lcom/netease/newsreader/appwidget/WidgetService4x3;)V

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->handler:Landroid/os/Handler;

    .line 36
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Z
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-boolean v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->threadflag:Z

    return v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/appwidget/WidgetService4x3;Landroid/content/Context;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 635
    invoke-direct {p0, p1}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->getListFromDB(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic access$10(Lcom/netease/newsreader/appwidget/WidgetService4x3;Landroid/content/ComponentName;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 55
    iput-object p1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->widget:Landroid/content/ComponentName;

    return-void
.end method

.method static synthetic access$11(Lcom/netease/newsreader/appwidget/WidgetService4x3;Landroid/appwidget/AppWidgetManager;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    iput-object p1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->manager:Landroid/appwidget/AppWidgetManager;

    return-void
.end method

.method static synthetic access$12(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Landroid/appwidget/AppWidgetManager;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->manager:Landroid/appwidget/AppWidgetManager;

    return-object v0
.end method

.method static synthetic access$13(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Landroid/content/ComponentName;
    .locals 1
    .parameter

    .prologue
    .line 55
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->widget:Landroid/content/ComponentName;

    return-object v0
.end method

.method static synthetic access$14(Lcom/netease/newsreader/appwidget/WidgetService4x3;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 185
    iput-boolean p1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->finish:Z

    return-void
.end method

.method static synthetic access$15(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Lcom/netease/newsreader/util/BaseImageDownloader;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgdownload:Lcom/netease/newsreader/util/BaseImageDownloader;

    return-object v0
.end method

.method static synthetic access$16(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 58
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl1:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$17(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 59
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl2:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$18(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl3:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$19(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 362
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->handler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 44
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->data:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$3(Lcom/netease/newsreader/appwidget/WidgetService4x3;)V
    .locals 0
    .parameter

    .prologue
    .line 485
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->downloadDocs()V

    return-void
.end method

.method static synthetic access$4(Lcom/netease/newsreader/appwidget/WidgetService4x3;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 47
    iput p1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    return-void
.end method

.method static synthetic access$5(Lcom/netease/newsreader/appwidget/WidgetService4x3;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 46
    iput p1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->mCount:I

    return-void
.end method

.method static synthetic access$6(Lcom/netease/newsreader/appwidget/WidgetService4x3;)V
    .locals 0
    .parameter

    .prologue
    .line 395
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->reloadQueue()V

    return-void
.end method

.method static synthetic access$7(Lcom/netease/newsreader/appwidget/WidgetService4x3;)V
    .locals 0
    .parameter

    .prologue
    .line 155
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->notifyWidget()V

    return-void
.end method

.method static synthetic access$8(Lcom/netease/newsreader/appwidget/WidgetService4x3;)V
    .locals 0
    .parameter

    .prologue
    .line 450
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->downlaodAllDocs()V

    return-void
.end method

.method static synthetic access$9(Lcom/netease/newsreader/appwidget/WidgetService4x3;)Landroid/widget/RemoteViews;
    .locals 1
    .parameter

    .prologue
    .line 52
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    return-object v0
.end method

.method private buildUpdate(Landroid/content/Context;)V
    .locals 14
    .parameter "context"

    .prologue
    .line 188
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    if-nez v10, :cond_1

    .line 349
    :cond_0
    :goto_0
    return-void

    .line 189
    :cond_1
    invoke-static {p1}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v10

    if-eqz v10, :cond_2

    .line 190
    :goto_1
    iget-boolean v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->finish:Z

    if-eqz v10, :cond_7

    .line 200
    :cond_2
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 201
    .local v4, list:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->data:Ljava/util/List;

    invoke-interface {v4, v10}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 203
    iget v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->mCount:I

    if-lez v10, :cond_d

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v10

    if-lez v10, :cond_d

    iget v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    iget v11, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->pages:I

    if-ge v10, v11, :cond_d

    .line 206
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c0198

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 207
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a8

    const/4 v12, 0x4

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 208
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c0199

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 209
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c019e

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 210
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a3

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 212
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    .line 213
    .local v8, s:Ljava/lang/StringBuilder;
    const-string v10, "<font color=\'#3B383F\'>"

    invoke-virtual {v8, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget v11, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    add-int/lit8 v11, v11, 0x1

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "</font>"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    .line 214
    const-string v11, "<font color=\'#22212B\'>"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "/"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget v11, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->pages:I

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "</font>"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 215
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c0196

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v12

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 218
    if-eqz v4, :cond_0

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v10

    if-eqz v10, :cond_0

    .line 219
    iget v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    mul-int/lit8 v10, v10, 0x3

    invoke-interface {v4, v10}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map;

    .line 220
    .local v5, obj:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v10, "docid"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 221
    .local v0, articleid:Ljava/lang/String;
    const-string v10, "title"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/String;

    .line 222
    .local v9, title:Ljava/lang/String;
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "replyCount"

    invoke-interface {v5, v11}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 223
    .local v7, replycount:Ljava/lang/String;
    const-string v10, "digest"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 224
    .local v2, describe:Ljava/lang/String;
    const-string v10, "\u8ddf\u8d34"

    invoke-virtual {v7, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_3

    .line 225
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, "\u8ddf\u8d34"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 229
    :cond_3
    const-string v10, "imgsrc"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    if-nez v10, :cond_8

    const-string v10, ""

    :goto_2
    iput-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl1:Ljava/lang/String;

    .line 231
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c019b

    invoke-virtual {v10, v11, v9}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 232
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c019d

    invoke-virtual {v10, v11, v7}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 233
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c019c

    invoke-virtual {v10, v11, v2}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 235
    new-instance v10, Landroid/content/Intent;

    const-class v11, Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-direct {v10, p1, v11}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    .line 237
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 238
    .local v1, b:Landroid/os/Bundle;
    const-string v10, "docid"

    invoke-virtual {v1, v10, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 239
    const-string v10, "position"

    const-string v11, "0"

    invoke-virtual {v1, v10, v11}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 240
    const-string v10, "headLine"

    const/4 v11, 0x1

    invoke-virtual {v1, v10, v11}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 241
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    invoke-virtual {v10, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 243
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    const/high16 v11, 0x1000

    invoke-virtual {v10, v11}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 244
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v11

    invoke-static {v11, v12}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 245
    const/4 v10, 0x0

    iget-object v11, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    const/high16 v12, 0x800

    invoke-static {p0, v10, v11, v12}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v6

    .line 246
    .local v6, pendingIntent:Landroid/app/PendingIntent;
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c0199

    invoke-virtual {v10, v11, v6}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V

    .line 247
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c019a

    const v12, 0x7f020034

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setImageViewResource(II)V

    .line 250
    iget v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    mul-int/lit8 v10, v10, 0x3

    add-int/lit8 v10, v10, 0x1

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v11

    if-ge v10, v11, :cond_a

    .line 251
    iget v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    mul-int/lit8 v10, v10, 0x3

    add-int/lit8 v10, v10, 0x1

    invoke-interface {v4, v10}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    .end local v5           #obj:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v5, Ljava/util/Map;

    .line 252
    .restart local v5       #obj:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v10, "docid"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .end local v0           #articleid:Ljava/lang/String;
    check-cast v0, Ljava/lang/String;

    .line 253
    .restart local v0       #articleid:Ljava/lang/String;
    const-string v10, "title"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    .end local v9           #title:Ljava/lang/String;
    check-cast v9, Ljava/lang/String;

    .line 254
    .restart local v9       #title:Ljava/lang/String;
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "replyCount"

    invoke-interface {v5, v11}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 255
    const-string v10, "digest"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .end local v2           #describe:Ljava/lang/String;
    check-cast v2, Ljava/lang/String;

    .line 256
    .restart local v2       #describe:Ljava/lang/String;
    const-string v10, "\u8ddf\u8d34"

    invoke-virtual {v7, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_4

    .line 257
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, "\u8ddf\u8d34"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 260
    :cond_4
    const-string v10, "imgsrc"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    if-nez v10, :cond_9

    const-string v10, ""

    :goto_3
    iput-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl2:Ljava/lang/String;

    .line 262
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a0

    invoke-virtual {v10, v11, v9}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 263
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a2

    invoke-virtual {v10, v11, v7}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 264
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a1

    invoke-virtual {v10, v11, v2}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 266
    new-instance v10, Landroid/content/Intent;

    const-class v11, Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-direct {v10, p1, v11}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    .line 268
    new-instance v1, Landroid/os/Bundle;

    .end local v1           #b:Landroid/os/Bundle;
    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 269
    .restart local v1       #b:Landroid/os/Bundle;
    const-string v10, "docid"

    invoke-virtual {v1, v10, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 270
    const-string v10, "position"

    const-string v11, "0"

    invoke-virtual {v1, v10, v11}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 271
    const-string v10, "headLine"

    const/4 v11, 0x1

    invoke-virtual {v1, v10, v11}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 272
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    invoke-virtual {v10, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 274
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    const/high16 v11, 0x1000

    invoke-virtual {v10, v11}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 275
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v11

    invoke-static {v11, v12}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 276
    const/4 v10, 0x0

    iget-object v11, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    const/high16 v12, 0x800

    invoke-static {p0, v10, v11, v12}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v6

    .line 277
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c019e

    invoke-virtual {v10, v11, v6}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V

    .line 278
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c019f

    const v12, 0x7f020034

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setImageViewResource(II)V

    .line 284
    :goto_4
    iget v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    mul-int/lit8 v10, v10, 0x3

    add-int/lit8 v10, v10, 0x2

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v11

    if-ge v10, v11, :cond_c

    .line 285
    iget v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    mul-int/lit8 v10, v10, 0x3

    add-int/lit8 v10, v10, 0x2

    invoke-interface {v4, v10}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    .end local v5           #obj:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v5, Ljava/util/Map;

    .line 286
    .restart local v5       #obj:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v10, "docid"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .end local v0           #articleid:Ljava/lang/String;
    check-cast v0, Ljava/lang/String;

    .line 287
    .restart local v0       #articleid:Ljava/lang/String;
    const-string v10, "title"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    .end local v9           #title:Ljava/lang/String;
    check-cast v9, Ljava/lang/String;

    .line 288
    .restart local v9       #title:Ljava/lang/String;
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "replyCount"

    invoke-interface {v5, v11}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 289
    const-string v10, "digest"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .end local v2           #describe:Ljava/lang/String;
    check-cast v2, Ljava/lang/String;

    .line 290
    .restart local v2       #describe:Ljava/lang/String;
    const-string v10, "\u8ddf\u8d34"

    invoke-virtual {v7, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_5

    .line 291
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, "\u8ddf\u8d34"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 294
    :cond_5
    const-string v10, "imgsrc"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    if-nez v10, :cond_b

    const-string v10, ""

    :goto_5
    iput-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl3:Ljava/lang/String;

    .line 296
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a5

    invoke-virtual {v10, v11, v9}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 297
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a7

    invoke-virtual {v10, v11, v7}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 298
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a6

    invoke-virtual {v10, v11, v2}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 300
    new-instance v10, Landroid/content/Intent;

    const-class v11, Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-direct {v10, p1, v11}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    .line 302
    new-instance v1, Landroid/os/Bundle;

    .end local v1           #b:Landroid/os/Bundle;
    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 303
    .restart local v1       #b:Landroid/os/Bundle;
    const-string v10, "docid"

    invoke-virtual {v1, v10, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 304
    const-string v10, "position"

    const-string v11, "0"

    invoke-virtual {v1, v10, v11}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 305
    const-string v10, "headLine"

    const/4 v11, 0x1

    invoke-virtual {v1, v10, v11}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 306
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    invoke-virtual {v10, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 308
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    const/high16 v11, 0x1000

    invoke-virtual {v10, v11}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 309
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v11

    invoke-static {v11, v12}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 310
    const/4 v10, 0x0

    iget-object v11, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->detailpage:Landroid/content/Intent;

    const/high16 v12, 0x800

    invoke-static {p0, v10, v11, v12}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v6

    .line 311
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a3

    invoke-virtual {v10, v11, v6}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V

    .line 312
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a4

    const v12, 0x7f020034

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setImageViewResource(II)V

    .line 316
    :goto_6
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl1:Ljava/lang/String;

    invoke-static {v10}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_6

    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl2:Ljava/lang/String;

    invoke-static {v10}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_6

    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgUrl2:Ljava/lang/String;

    invoke-static {v10}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_0

    .line 317
    :cond_6
    new-instance v10, Lcom/netease/newsreader/appwidget/WidgetService4x3$3;

    invoke-direct {v10, p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3$3;-><init>(Lcom/netease/newsreader/appwidget/WidgetService4x3;)V

    .line 335
    invoke-virtual {v10}, Lcom/netease/newsreader/appwidget/WidgetService4x3$3;->start()V

    goto/16 :goto_0

    .line 192
    .end local v0           #articleid:Ljava/lang/String;
    .end local v1           #b:Landroid/os/Bundle;
    .end local v2           #describe:Ljava/lang/String;
    .end local v4           #list:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .end local v5           #obj:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v6           #pendingIntent:Landroid/app/PendingIntent;
    .end local v7           #replycount:Ljava/lang/String;
    .end local v8           #s:Ljava/lang/StringBuilder;
    .end local v9           #title:Ljava/lang/String;
    :cond_7
    const-wide/16 v10, 0x1f4

    :try_start_0
    invoke-static {v10, v11}, Ljava/lang/Thread;->sleep(J)V

    .line 193
    invoke-direct {p0, p1}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->buildUpdate(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_1

    .line 194
    :catch_0
    move-exception v3

    .line 195
    .local v3, e:Ljava/lang/InterruptedException;
    invoke-virtual {v3}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto/16 :goto_1

    .line 229
    .end local v3           #e:Ljava/lang/InterruptedException;
    .restart local v0       #articleid:Ljava/lang/String;
    .restart local v2       #describe:Ljava/lang/String;
    .restart local v4       #list:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .restart local v5       #obj:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v7       #replycount:Ljava/lang/String;
    .restart local v8       #s:Ljava/lang/StringBuilder;
    .restart local v9       #title:Ljava/lang/String;
    :cond_8
    const-string v10, "imgsrc"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/String;

    goto/16 :goto_2

    .line 260
    .restart local v1       #b:Landroid/os/Bundle;
    .restart local v6       #pendingIntent:Landroid/app/PendingIntent;
    :cond_9
    const-string v10, "imgsrc"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/String;

    goto/16 :goto_3

    .line 280
    :cond_a
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c019e

    const/4 v12, 0x4

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 281
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a3

    const/4 v12, 0x4

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    goto/16 :goto_4

    .line 294
    :cond_b
    const-string v10, "imgsrc"

    invoke-interface {v5, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/String;

    goto/16 :goto_5

    .line 314
    :cond_c
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a3

    const/4 v12, 0x4

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    goto :goto_6

    .line 337
    .end local v0           #articleid:Ljava/lang/String;
    .end local v1           #b:Landroid/os/Bundle;
    .end local v2           #describe:Ljava/lang/String;
    .end local v5           #obj:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v6           #pendingIntent:Landroid/app/PendingIntent;
    .end local v7           #replycount:Ljava/lang/String;
    .end local v8           #s:Ljava/lang/StringBuilder;
    .end local v9           #title:Ljava/lang/String;
    :cond_d
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v10

    if-nez v10, :cond_e

    .line 338
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c0198

    const/16 v12, 0x8

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 339
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a8

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 340
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a9

    .line 341
    invoke-virtual {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->getResources()Landroid/content/res/Resources;

    move-result-object v12

    const v13, 0x7f0b00b5

    invoke-virtual {v12, v13}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v12

    .line 340
    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 343
    :cond_e
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c0198

    const/16 v12, 0x8

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 344
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a8

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

    .line 345
    iget-object v10, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    const v11, 0x7f0c01a9

    .line 346
    invoke-virtual {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->getResources()Landroid/content/res/Resources;

    move-result-object v12

    const v13, 0x7f0b00b4

    invoke-virtual {v12, v13}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v12

    .line 345
    invoke-virtual {v10, v11, v12}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    goto/16 :goto_0
.end method

.method private doNext()V
    .locals 2

    .prologue
    .line 428
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    .line 429
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    iget v1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->pages:I

    if-lt v0, v1, :cond_0

    .line 430
    const/4 v0, 0x0

    iput v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    .line 432
    :cond_0
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->notifyWidget()V

    .line 433
    return-void
.end method

.method private doPrev()V
    .locals 1

    .prologue
    .line 419
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    add-int/lit8 v0, v0, -0x1

    iput v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    .line 420
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    if-gez v0, :cond_0

    .line 421
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->pages:I

    add-int/lit8 v0, v0, -0x1

    iput v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    .line 423
    :cond_0
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->notifyWidget()V

    .line 424
    return-void
.end method

.method private downlaodAllDocs()V
    .locals 5

    .prologue
    const/16 v4, 0x14

    const/4 v3, 0x0

    .line 452
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 454
    .local v0, tmpData4Offline:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 457
    const-string v1, "http://c.3g.163.com/nc/article/headline/"

    .line 458
    const-string v2, "T1295501906343"

    .line 456
    invoke-static {p0, v1, v2, v3, v4}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadlineArticleList(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 459
    const-string v1, "T1295501906343"

    const-string v2, "head"

    invoke-direct {p0, v0, v1, v2}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->insertListToDB(Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 460
    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 462
    const-string v1, "http://c.3g.163.com/nc/article/list/"

    const-string v2, "T1295505916992"

    .line 461
    invoke-static {v1, v2, v3, v4, p0}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 464
    const-string v1, "T1295505916992"

    const-string v2, "nohead"

    invoke-direct {p0, v0, v1, v2}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->insertListToDB(Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 465
    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 467
    const-string v1, "http://c.3g.163.com/nc/article/list/"

    const-string v2, "T1295506658957"

    .line 466
    invoke-static {v1, v2, v3, v4, p0}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 469
    const-string v1, "T1295506658957"

    const-string v2, "nohead"

    invoke-direct {p0, v0, v1, v2}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->insertListToDB(Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 470
    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 472
    const-string v1, "http://c.3g.163.com/nc/article/list/"

    const-string v2, "T1295505705196"

    .line 471
    invoke-static {v1, v2, v3, v4, p0}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 474
    const-string v1, "T1295505705196"

    const-string v2, "nohead"

    invoke-direct {p0, v0, v1, v2}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->insertListToDB(Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 475
    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 477
    const-string v1, "http://c.3g.163.com/nc/article/list/"

    const-string v2, "T1295507084100"

    .line 476
    invoke-static {v1, v2, v3, v4, p0}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 479
    const-string v1, "T1295507084100"

    const-string v2, "nohead"

    invoke-direct {p0, v0, v1, v2}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->insertListToDB(Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 483
    :cond_0
    return-void
.end method

.method private downloadDocs()V
    .locals 5

    .prologue
    const/16 v4, 0x14

    const/4 v3, 0x0

    .line 487
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 489
    .local v0, tmpData4Offline:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 492
    const-string v1, "http://c.3g.163.com/nc/article/headline/"

    .line 493
    const-string v2, "T1295501906343"

    .line 491
    invoke-static {p0, v1, v2, v3, v4}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadlineArticleList(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 494
    const-string v1, "T1295501906343"

    const-string v2, "head"

    invoke-direct {p0, v0, v1, v2}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->insertListToDB(Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 496
    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 498
    const-string v1, "http://c.3g.163.com/nc/article/list/"

    const-string v2, "T1295505916992"

    .line 497
    invoke-static {v1, v2, v3, v4, p0}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 500
    const-string v1, "T1295505916992"

    const-string v2, "nohead"

    invoke-direct {p0, v0, v1, v2}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->insertListToDB(Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 504
    :cond_0
    return-void
.end method

.method private getListFromDB(Landroid/content/Context;)V
    .locals 5
    .parameter "context"

    .prologue
    .line 637
    iget-object v3, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->data:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 639
    const-string v2, "select * from news_list where news_img_src<>\'\' and (news_col_id =\'T1295501906343\' or news_col_id =\'T1295505916992\' or news_col_id =\'T1295506658957\' or news_col_id =\'T1295505705196\' or news_col_id =\'T1295507084100\') order by news_ptime desc limit 0,30"

    .line 645
    .local v2, sql:Ljava/lang/String;
    iget-object v3, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v4, 0x0

    invoke-virtual {v3, v2, v4}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 647
    .local v0, cursor:Landroid/database/Cursor;
    if-eqz v0, :cond_0

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

    move-result v3

    if-eqz v3, :cond_0

    .line 649
    const/4 v1, 0x0

    .line 650
    .local v1, map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_0
    invoke-interface {v0}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 679
    .end local v1           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_0
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 680
    return-void

    .line 652
    .restart local v1       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_1
    new-instance v1, Ljava/util/HashMap;

    .end local v1           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    .line 653
    .restart local v1       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v3, "docid"

    .line 654
    const-string v4, "news_doc_id"

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    .line 653
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 655
    const-string v3, "imgsrc"

    .line 656
    const-string v4, "news_img_src"

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    .line 655
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 657
    const-string v3, "digest"

    .line 658
    const-string v4, "news_digest"

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    .line 657
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 659
    const-string v3, "replyCount"

    .line 660
    const-string v4, "news_reply_count"

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    .line 659
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 661
    const-string v3, "url"

    .line 662
    const-string v4, "news_url"

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    .line 661
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 663
    const-string v3, "title"

    .line 664
    const-string v4, "news_title"

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    .line 663
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 665
    const-string v3, "ptime"

    .line 666
    const-string v4, "news_ptime"

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    .line 665
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 670
    const-string v3, "news_is_first"

    invoke-interface {v0, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    .line 669
    invoke-interface {v0, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 671
    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 672
    iget-object v3, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->data:Ljava/util/List;

    const/4 v4, 0x0

    invoke-interface {v3, v4, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 651
    :goto_1
    invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z

    goto/16 :goto_0

    .line 674
    :cond_2
    iget-object v3, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->data:Ljava/util/List;

    invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1
.end method

.method private insertListToDB(Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
    .locals 23
    .parameter
    .parameter "columnID"
    .parameter "type"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .prologue
    .line 508
    .local p1, data:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    const-string v4, ""

    .line 509
    .local v4, docid:Ljava/lang/String;
    const-string v5, ""

    .line 510
    .local v5, imgsrc:Ljava/lang/String;
    const-string v6, ""

    .line 511
    .local v6, digest:Ljava/lang/String;
    const-string v8, ""

    .line 512
    .local v8, url:Ljava/lang/String;
    const-string v7, ""

    .line 513
    .local v7, replyCount:Ljava/lang/String;
    const-string v9, ""

    .line 514
    .local v9, title:Ljava/lang/String;
    const-string v10, ""

    .line 515
    .local v10, ptime:Ljava/lang/String;
    const-string v14, "0"

    .line 516
    .local v14, hasimg:Ljava/lang/String;
    const-string v15, ""

    .line 517
    .local v15, specialid:Ljava/lang/String;
    const-string v16, ""

    .line 518
    .local v16, sepcialindex:Ljava/lang/String;
    const-string v17, ""

    .line 519
    .local v17, sepcialtname:Ljava/lang/String;
    const-string v18, ""

    .line 520
    .local v18, extendjson:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V

    .line 522
    :try_start_0
    const-string v2, "head"

    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 523
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v11, "delete from news_list where news_col_id=\'"

    invoke-direct {v3, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 525
    move-object/from16 v0, p2

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v11, "\'"

    invoke-virtual {v3, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 523
    invoke-virtual {v2, v3}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 528
    :cond_0
    const/16 v21, 0x0

    .local v21, i:I
    :goto_0
    invoke-interface/range {p1 .. p1}, Ljava/util/List;->size()I

    move-result v2

    move/from16 v0, v21

    if-lt v0, v2, :cond_1

    .line 627
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 632
    .end local v21           #i:I
    :goto_1
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V

    .line 633
    return-void

    .line 530
    .restart local v21       #i:I
    :cond_1
    :try_start_1
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 531
    const-string v3, "docid"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 530
    if-eqz v2, :cond_f

    .line 532
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 533
    const-string v3, "docid"

    .line 532
    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 533
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    .line 534
    const-string v22, "select * from news_list where news_doc_id=?"

    .line 538
    .local v22, sql:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 539
    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/String;

    const/4 v11, 0x0

    aput-object v4, v3, v11

    move-object/from16 v0, v22

    invoke-virtual {v2, v0, v3}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v19

    .line 541
    .local v19, cursor:Landroid/database/Cursor;
    if-eqz v19, :cond_2

    invoke-interface/range {v19 .. v19}, Landroid/database/Cursor;->getCount()I

    move-result v2

    if-nez v2, :cond_e

    .line 542
    :cond_2
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 543
    const-string v3, "imgsrc"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 542
    if-eqz v2, :cond_3

    .line 544
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 545
    const-string v3, "imgsrc"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 546
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    .line 548
    :cond_3
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 549
    const-string v3, "digest"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 548
    if-eqz v2, :cond_4

    .line 550
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 551
    const-string v3, "digest"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 552
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    .line 554
    :cond_4
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 555
    const-string v3, "replyCount"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 554
    if-eqz v2, :cond_5

    .line 557
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 558
    const-string v3, "replyCount"

    .line 557
    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 559
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    .line 561
    :cond_5
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 562
    const-string v3, "url"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 561
    if-eqz v2, :cond_6

    .line 563
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 564
    const-string v3, "url"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    .line 566
    :cond_6
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 567
    const-string v3, "title"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 566
    if-eqz v2, :cond_7

    .line 568
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 569
    const-string v3, "title"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 570
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v9

    .line 572
    :cond_7
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 573
    const-string v3, "ptime"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 572
    if-eqz v2, :cond_8

    .line 574
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 575
    const-string v3, "ptime"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 576
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    .line 578
    :cond_8
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 579
    const-string v3, "hasImg"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 578
    if-eqz v2, :cond_9

    .line 580
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 581
    const-string v3, "hasImg"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 582
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v14

    .line 584
    :cond_9
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 585
    const-string v3, "specialID"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 584
    if-eqz v2, :cond_a

    .line 587
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 588
    const-string v3, "specialID"

    .line 587
    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 589
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v15

    .line 591
    :cond_a
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 592
    const-string v3, "index"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 591
    if-eqz v2, :cond_b

    .line 594
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 595
    const-string v3, "index"

    .line 594
    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 596
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v16

    .line 598
    :cond_b
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 599
    const-string v3, "tname"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 598
    if-eqz v2, :cond_c

    .line 601
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 602
    const-string v3, "tname"

    .line 601
    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 603
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v17

    .line 605
    :cond_c
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 606
    const-string v3, "extendjson"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 605
    if-eqz v2, :cond_d

    .line 608
    move-object/from16 v0, p1

    move/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 609
    const-string v3, "extendjson"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 610
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v18

    .line 613
    :cond_d
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 615
    const-string v11, ""

    const-string v12, "0"

    const-string v13, "N"

    move-object/from16 v3, p2

    .line 613
    invoke-static/range {v2 .. v18}, Lcom/netease/newsreader/db/DBUtils;->insertDataToNewsListTable(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 619
    :cond_e
    invoke-interface/range {v19 .. v19}, Landroid/database/Cursor;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 528
    .end local v19           #cursor:Landroid/database/Cursor;
    .end local v22           #sql:Ljava/lang/String;
    :cond_f
    :goto_2
    add-int/lit8 v21, v21, 0x1

    goto/16 :goto_0

    .line 622
    :catch_0
    move-exception v20

    .line 624
    .local v20, e:Ljava/lang/Exception;
    :try_start_2
    invoke-virtual/range {v20 .. v20}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_2

    .line 628
    .end local v20           #e:Ljava/lang/Exception;
    .end local v21           #i:I
    :catch_1
    move-exception v20

    .line 630
    .restart local v20       #e:Ljava/lang/Exception;
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V

    goto/16 :goto_1
.end method

.method private linkButtons(Landroid/content/Context;Landroid/widget/RemoteViews;)V
    .locals 5
    .parameter "context"
    .parameter "views"

    .prologue
    const/4 v4, 0x0

    .line 141
    new-instance v2, Landroid/content/ComponentName;

    .line 142
    const-class v3, Lcom/netease/newsreader/appwidget/WidgetService4x3;

    .line 141
    invoke-direct {v2, p1, v3}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 144
    .local v2, serviceName:Landroid/content/ComponentName;
    new-instance v0, Landroid/content/Intent;

    const-string v3, "com.netease.newsreader.activity.intent.action.APP_WIDGET_PREV"

    invoke-direct {v0, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 145
    .local v0, intent:Landroid/content/Intent;
    invoke-virtual {v0, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 146
    invoke-static {p1, v4, v0, v4}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v1

    .line 147
    .local v1, pendingIntent:Landroid/app/PendingIntent;
    const v3, 0x7f0c0197

    invoke-virtual {p2, v3, v1}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V

    .line 149
    new-instance v0, Landroid/content/Intent;

    .end local v0           #intent:Landroid/content/Intent;
    const-string v3, "com.netease.newsreader.activity.intent.action.APP_WIDGET_NEXT"

    invoke-direct {v0, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 150
    .restart local v0       #intent:Landroid/content/Intent;
    invoke-virtual {v0, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 151
    invoke-static {p1, v4, v0, v4}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v1

    .line 152
    const v3, 0x7f0c0195

    invoke-virtual {p2, v3, v1}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V

    .line 153
    return-void
.end method

.method private notifyWidget()V
    .locals 3

    .prologue
    .line 158
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    if-nez v0, :cond_0

    .line 159
    new-instance v0, Landroid/widget/RemoteViews;

    invoke-virtual {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->getPackageName()Ljava/lang/String;

    move-result-object v1

    const v2, 0x7f030082

    invoke-direct {v0, v1, v2}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    .line 161
    :cond_0
    new-instance v0, Landroid/content/ComponentName;

    const-class v1, Lcom/netease/newsreader/appwidget/WidgetProvider_4_3;

    invoke-direct {v0, p0, v1}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->widget:Landroid/content/ComponentName;

    .line 162
    invoke-direct {p0, p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->buildUpdate(Landroid/content/Context;)V

    .line 163
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    invoke-direct {p0, p0, v0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->linkButtons(Landroid/content/Context;Landroid/widget/RemoteViews;)V

    .line 164
    invoke-static {p0}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->manager:Landroid/appwidget/AppWidgetManager;

    .line 165
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->manager:Landroid/appwidget/AppWidgetManager;

    iget-object v1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->widget:Landroid/content/ComponentName;

    iget-object v2, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    invoke-virtual {v0, v1, v2}, Landroid/appwidget/AppWidgetManager;->updateAppWidget(Landroid/content/ComponentName;Landroid/widget/RemoteViews;)V

    .line 167
    return-void
.end method

.method private reloadQueue()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 397
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->data:Ljava/util/List;

    .line 399
    invoke-direct {p0, p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->getListFromDB(Landroid/content/Context;)V

    .line 402
    const/4 v0, 0x0

    iput v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->page:I

    .line 403
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->data:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    iput v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->mCount:I

    .line 404
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->mCount:I

    if-lez v0, :cond_0

    .line 405
    iput-boolean v2, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->finish:Z

    .line 407
    :cond_0
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->mCount:I

    const/4 v1, 0x3

    if-ge v0, v1, :cond_1

    .line 408
    iput v2, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->pages:I

    .line 415
    :goto_0
    return-void

    .line 409
    :cond_1
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->mCount:I

    rem-int/lit8 v0, v0, 0x3

    if-nez v0, :cond_2

    .line 410
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->mCount:I

    div-int/lit8 v0, v0, 0x3

    iput v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->pages:I

    goto :goto_0

    .line 412
    :cond_2
    iget v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->mCount:I

    div-int/lit8 v0, v0, 0x3

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->pages:I

    goto :goto_0
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 1
    .parameter "arg0"

    .prologue
    .line 182
    const/4 v0, 0x0

    return-object v0
.end method

.method public onCreate()V
    .locals 3

    .prologue
    .line 64
    invoke-super {p0}, Landroid/app/Service;->onCreate()V

    .line 66
    invoke-virtual {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/netease/newsreader/activity/MyApplication;

    .line 67
    .local v0, app:Lcom/netease/newsreader/activity/MyApplication;
    invoke-virtual {v0}, Lcom/netease/newsreader/activity/MyApplication;->getSQLiteDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    iput-object v1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 68
    new-instance v1, Lcom/netease/newsreader/util/BaseImageDownloader;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/netease/newsreader/util/BaseImageDownloader;-><init>(Landroid/content/Context;Landroid/graphics/Bitmap;)V

    iput-object v1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->imgdownload:Lcom/netease/newsreader/util/BaseImageDownloader;

    .line 73
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->reloadQueue()V

    .line 75
    iget-object v1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateThread:Ljava/lang/Thread;

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 76
    return-void
.end method

.method public onDestroy()V
    .locals 1

    .prologue
    .line 173
    iget-object v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateThread:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V

    .line 175
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->threadflag:Z

    .line 176
    invoke-super {p0}, Landroid/app/Service;->onDestroy()V

    .line 177
    return-void
.end method

.method public onStart(Landroid/content/Intent;I)V
    .locals 4
    .parameter "intent"
    .parameter "startId"

    .prologue
    .line 80
    invoke-super {p0, p1, p2}, Landroid/app/Service;->onStart(Landroid/content/Intent;I)V

    .line 81
    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    .line 82
    .local v0, action:Ljava/lang/String;
    new-instance v1, Landroid/widget/RemoteViews;

    invoke-virtual {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->getPackageName()Ljava/lang/String;

    move-result-object v2

    const v3, 0x7f030082

    invoke-direct {v1, v2, v3}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V

    iput-object v1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x3;->updateViews:Landroid/widget/RemoteViews;

    .line 85
    const-string v1, "com.netease.newsreader.activity.intent.action.APP_WIDGET_PREV"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 86
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->doPrev()V

    .line 93
    :goto_0
    return-void

    .line 87
    :cond_0
    const-string v1, "com.netease.newsreader.activity.intent.action.APP_WIDGET_NEXT"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 88
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->doNext()V

    goto :goto_0

    .line 91
    :cond_1
    invoke-direct {p0}, Lcom/netease/newsreader/appwidget/WidgetService4x3;->notifyWidget()V

    goto :goto_0
.end method
